﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace ITMAN
{
    public partial class FRM_login : Form
    {
        public FRM_login()
        {
            InitializeComponent();
        }

        private void BTN_login_Click(object sender, EventArgs e)
        {
            Klassen.CL_login login = new Klassen.CL_login();
            if (login.user_login(EDT_username.Text, EDT_password.Text))
            {
                Login_FRMs.FRM_appmenu appmenu = new Login_FRMs.FRM_appmenu();
                appmenu.Show();
                this.Hide();
            }
            
        }

        private void anlegenToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Login_FRMs.FRM_reg_user reg_user = new Login_FRMs.FRM_reg_user();
            reg_user.Show();
        }

        private void schließenToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }
    }
}
